<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>

	<title></title>

</head>
<body>

<p align="center">
	<h2>权限添加页</h2>
	<a href="index.html">权限主页</a>
</p>
<form action="add" method="post">
	<p>权限名称: <input type="text" name="rule_name"></p>
	<p>模块名称: <input type="text" name="module_name"></p>
	<p>控制器名称: <input type="text" name="controller_name"></p>
	<p>方法名称: <input type="text" name="action_name"></p>
	<p>
		菜单是否显示:
		<input type="radio" name="is_shop" value="1" checked="checked">是
		<input type="radio" name="is_shop" value="1">否
	</p>
	<p>
		上级权限选择：<select name="parent_id">
			<option value="0">顶级权限</option>
			<?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo["id"]); ?>">|<?php echo (str_repeat("--",$vo["lev"])); echo ($vo["rule_name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
		</select>
	</p>
	<p>
		<input type="submit" value="提交">
		<input type="reset" value="重置">
	</p>
</form>

</body>
</html>